package com.leyou.search.utils;

import java.util.Map;

/**
 * @Author: taft
 * @Date: 2018-12-26 10:07
 */
public class SearchRequest {
    private String key;

    private Integer page;

    private Map<String,String> filter;


    public static final Integer DEFAULT_SIZE = 20;// 每页大小，不从页面接收，而是固定大小
    public static final Integer DEFAULT_PAGE = 1;// 默认页



    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Map<String, String> getFilter() {
        return filter;
    }

    public void setFilter(Map<String, String> filter) {
        this.filter = filter;
    }
}
